/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  font-weight: normal;
  font-style: normal;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

input,
textarea {
  font-size: 0.14rem;
}

img {
  display: block;
}

a, span {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

html {
  font-size: calc(100vw / 375 * 100);
}

#app {
  width: 100vw;
  height: 100vh;
  font-size: 0.14rem;
  font-family: serif;
  overflow: hidden;
  padding: 0.1rem;
  display: flex;
  flex-direction: column;
}

header h3 {
  line-height: 0.3rem;
  padding-left: 0.1rem;
  font-size: 0.16rem;
}

.head {
  display: flex;
  align-items: center;
  margin-bottom: 0.1rem;

  input {
    height: 0.24rem;
    width: 1rem;
    border: 0.01rem solid #e5e5e5;
    border-radius: 0.04rem;
    color: #777777;
    font-size: 0.12rem;
    padding-left: 0.04rem;
  }

  .imgs {
    flex: 1;
    display: flex;
    justify-content: space-around;

    img {
      width: 0.24rem;
      height: 0.24rem;
      object-fit: contain;
      border: 0.01rem solid tomato;
      border-radius: 0.04rem;
      opacity: 0.5;

      &.active {
        opacity: 1;
      }
    }
  }
}

.remark {
  margin-bottom: 0.1rem;

  textarea {
    display: block;
    width: 100%;
    border: 0.01rem solid #e5e5e5;
    color: #777777;
    padding-left: 0.04rem;
    padding-top: 0.04rem;
    font-size: 0.12rem;
    height: 0.7rem;
    border-radius: 0.04rem;
    resize: none;
  }
}

.send {
  display: flex;
  justify-content: end;
  color: #a69999;
  font-size: 0.12rem;
  align-items: center;
  line-height: 0.3rem;
  height: 0.3rem;
  margin-bottom: 0.1rem;

  span {
    font-size: 0.24rem;
    font-family: Georgia;
    padding: 0 0.05rem;
  }

  button {
    margin-left: 0.1rem;
    height: 0.3rem;
    padding: 0 0.4rem;
    background: linear-gradient(#98d10c, #73b533);
    border: 0.02rem solid #c6de86;
    border-radius: 0.08rem;
    color: #f3faea;
    font-size: 0.18rem;
    line-height: 0.26rem;
  }
}

main {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;

  h3 {
    background: #e3eaec;
    border-bottom: 0.01rem solid #dfe4e8;
    border-top: 0.01rem solid #dee5e7;
    min-height: 0.3rem;
    font-size: 0.14rem;
    display: flex;
    align-items: end;

    span {
      background: #fff;
      margin-left: 0.1rem;
      margin-bottom: -0.01rem;
      padding: 0.05rem 0.2rem;
    }
  }
}

.con {
  overflow: hidden;
  overflow-y: auto;
  padding-top: 0.1rem;

  &::-webkit-scrollbar {
    display: none;
  }

  .item {
    border-bottom: 0.01rem dashed #e6e6e6;
    display: grid;
    grid-template-columns: 0.5rem auto;
    grid-template-rows: auto auto;
    margin-bottom: 0.1rem;
    padding: 0.1rem 0;
    grid-column-gap: 0.1rem;
    overflow: hidden;
    height: 0.7rem;

    .del {
      cursor: pointer;
      margin-right: 0.1rem;
    }

    &:hover .del {
      display: block !important;
    }

    img {
      grid-row: 1 /span 2;
      border: 0.01rem solid #ded9ca;
      width: 0.5rem;
      height: 0.5rem;
      object-fit: contain;
    }

    p {

      span {
        color: #2b4a78;
      }

      span:last-child {
        color: #000;
      }
    }

    p:last-child {
      display: flex;
      justify-content: space-between;

      span{
        color: #889db6;
        font-size: 0.1rem;
        line-height: 0.16rem;
      }

      span:last-child {
        display: none;
      }
    }

    &:hover {
      background: #f5f5f5;
    }
  }

  .empty {
    text-align: center;
    font-size: 0.16rem;
    color: #666;
    line-height: 0.4rem;
  }
}

.mark {
  background: rgba($color: #000000, $alpha: 0.4);
  width: 100vw;
  height: 100vh;
  position: fixed;
  inset: 0;
  display: flex;

  .pop {
    margin: auto;
    border-radius: 0.06rem;
    padding: 0.1rem;
    width: 2rem;
    height: 1.2rem;
    background: #f5f5f5;
    box-shadow: 0 0 0.2rem rgba($color: #ccc, $alpha: 0.6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    p {
      text-align: center;
    }
    button {
      font-size: 0.14rem;
      line-height: 0.19rem;
      background: #7cacf8;
      color: #eee;
      border: 0.01rem solid #7cacf8ab;
      border-radius: 0.03rem;
    }
  }
}
